package com.wing.storage.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wing.mybatis.common.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 仓库产品出库作业详情
 *
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class ProductStorageWorkOutDetailStatic extends BaseEntity<ProductStorageWorkOutDetailStatic> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 出库作业ID
     */
    private Long productStorageWorkOutId;

    /**
     * 领料申请单明细
     */
    private Long receiptRecordDetailId;

    /**
     * 领料数量
     */
    @TableField(exist = false)
    private BigDecimal receiptNum;

    /**
     * 物料ID
     */
    @TableField(exist = true)
    private Long productDetailId;
    /**
     * skuId
     */
    @TableField(exist = false)
    private String skuId;
    /**
     * 物料编码
     */
    @TableField(exist = true)
    private String skuCode;

    /**
     * 物料名称
     */
    @TableField(exist = true)
    private String skuName;

    /**
     * 物料规格
     */
    @TableField(exist = true)
    private String skuSpec;

    /**
     * 基础单位
     */
    @TableField(exist = false)
    private Long baseUnit;

    /**
     * 基础单位名称
     */
    @TableField(exist = false)
    private String baseUnitName;

    /**
     * 主计量单位
     */
    @TableField(exist = false)
    private Long mainUnitId;

    /**
     * 主计量单位名称
     */
    @TableField(exist = false)
    private String mainUnitName;

    /**
     * 主计量单位换算率
     */
    @TableField(exist = false)
    private String mainUnitRate;

    /**
     * 辅计量单位
     */
    @TableField(exist = false)
    private Long subUnitId;

    /**
     * 辅计量单位名称
     */
    @TableField(exist = false)
    private String subUnitName;

    /**
     * 辅计量单位换算率
     */
    @TableField(exist = false)
    private String subUnitRate;

    /**
     * 出库库位
     */
    private Long warehouseShelfSpaceId;

    /**
     * 出库库位编号
     */
    @TableField(exist = false)
    private String warehouseShelfSpaceCode;

    /**
     * 载具编号
     */
    private Long palletBoxId;

    /**
     * 载具编号编码
     */
    @TableField(exist = false)
    private String palletBoxCode;

    /**
     * 出库数量
     */
    private BigDecimal outNum;

    /**
     * 仓库ID
     */
    private Long warehouseId;

    /**
     * 领料申请单
     */
    @TableField(exist = true)
    private Long receiptRecordId;

    /**
     * 仓库名称
     */
    @TableField(exist = false)
    private String warehouseName;

    /**
     * 出库作业编号
     */
    @TableField(exist = false)
    private String workNo;

    @TableField(exist = false)
    private Long outTypeId;

    /**
     * 出库类型名称
     */
    @TableField(exist = false)
    private String outTypeName;

    /**
     * 申请单编号
     */
    @TableField(exist = false)
    private String receiptRecordCode;

    private String dates;

    /**
     * 数量
     */
    private BigDecimal quantity;


}
